import pojo.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApplicationConfiguration {

    @Bean("student1")
    public Student student(){
        return new Student("xiaoming",2020L);
    }

    @Bean("student2")
    public Student student2(){
        return new Student("xiaohong",2021L);
    }
}
